<?php
    if (!isset($_SESSION)) 
    {
        session_start();
    }

    $dbUser = "root";
    $dbPass = "root";
    $dbDatabase = "proyectoapp";
    $dbHost = "127.0.0.1";

    $dbConn = new mysqli($dbHost, $dbUser, $dbPass, $dbDatabase);

    if ($dbConn) 
    {
        ini_set('default_mimetype', 'text/html');
        ini_set('default_charset', 'utf-8');
        $dbConn->set_charset('utf8');
    } else 
    {
        die("<strong>Error:</strong> Could not connect to database.");
    }
